﻿namespace Mysoft.Dto.Basic
{

    public abstract class DtoBase
    {
        /// <summary>
        /// 主键
        /// </summary>
        public Guid? Id { get; set; }
        /// <summary>
        /// 创建人GUID
        /// </summary>
        public Guid? CreateGuid { get; set; }
        /// <summary>
        ///  修改人GUID
        /// </summary>
        public Guid? UpdateGuid { get; set; }
        /// <summary>
        ///  创建人名称
        /// </summary>
        public string? CreateName { get; set; }
        /// <summary>
        ///  修改人名称
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 动态添加字段
        /// </summary>
        /// <param name="key">键</param>
        /// <param name="val">值</param>
        public void AddProperty(string key,object val)
        {
            ;
        }
    }
}